package com.geekhale.validate.controller;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

@Data
@Slf4j
public class CreateUserCommand implements BaseRequest {
    @Valid
    private User user;

    @Override
    public String validate() {
        log.info("user is {}", user);
        return null;
    }
}
